var wineApp = wineApp || {};
wineApp.CONFIG = {
    VERSION: "1.0.6",
    CONSTANTS: {
        PROTOCOL: 'http',
        //HOST: 'www.tyquan.cn',
        HOST: 'wine.moqle.com',
        //HOST: 'lv.tyquan.cn',
        PATH: '/dimg/view',
        PORT: 80
    },
    STORAGE: {
        PREFIX: 'wineApp'
    },
    ORDER_STATUS: {
        //2为代付款，3为代发货，4为已发货，5为交易完成，空值为全部
        WAIT_PAY: 2,
        WAIT_SEND: 3,
        WAIT_RECV: 4,
        COMPLETE: 5
    },
    countPerSet: 6, //代表一箱有几瓶
    PAYMENT: {
        alipay: {
            partner: '2088021262873586',
            locked: false,
            debug: false
        },
        wechat: {
            mch_id: '1427471002',
            appid: 'wxe1ffdb6ed52934ef',
            signKey: '230d7dd34b30ae31a98ded939fab54ad'
        },
        notifyUrl: 'http://wine.moqle.com/wine/wxback?plat=100',
    },
    DRTYPE: 0, //用户类型1：达人，0：普通
    API: {
        URL: {
            PROTOCOL: 'http',
            HOST: 'wine.moqle.com',
            //HOST: 'www.tyquan.cn', //'alcoholways.com',
            //HOST: 'lv.tyquan.cn', //'alcoholways.com',
            PATH: 'appi',
            //PATH: 'wine/appi',
            PORT: '80'
        },
        isMobile: false,
        PLATFORM: 'android',

        token: 'come', //用于第一次访问软件，获取一个key加密
        login: 'login', //登录
        register: 'register', //注册
        code: 'code', //获取验证码
        checkcode: 'checkcode', //校验验证码,
        banner: 'banner', //获取首页的导航图
        homejz: 'homeNews', //获取首页百年酒庄介绍
        homeproducts: 'homeProducts', //获取首页明星产品
        winelist: 'prodList', //获取产品列表
        winedetail: 'prodDetail', //产品明细
        createorder: 'order', //创建订单
        myorders: 'myOrders', //我的订单
        myorderdetail: 'myOrderDetail', //订单详情
        address: 'address', //收货地址
        addressadd: 'addressAdd', //添加收货地址
        addressupdate: 'addressUpdate', //修改收货地址
        addressdelete: 'addressDelete', //删除地址
        addressbyid: 'addressById', //获取地址信息
        provinces: 'provinces', //省份信息
        citys: 'citys', //城市信息
        packinfo: 'packInfo', //获取套餐信息
        myagents: 'myAgents', //我的会员
        myagentinfo: 'myAgentInfo', //我的会员
        mycommi: 'myCommi', //我的分润
        changepwd: 'changePwd', //修改密码
        orderdelete: 'orderDelete', //删除订单
        cartget: "cartGet", //获取购物车
        cartadd: "cartAdd", //获取购物车
        cartdeletebyid: "cartDeleteById", //删除购物车
        jz: "newsList", //百年酒庄
        jzdetail: "newsDetail", //百年酒庄
        towns: "towns", //县,
        myqrurl: "myQrUrl",
        searchcontent: "searchContent",
        version: "version"
    }
};